import request from '@/http/index.js'
//24小时天气
export function forecastHours(data) {
  return request({
    url: '/weather/forecastHours',
    method: 'GET',
    data
  })
}
//15天天气
export function forecast(data) {
  return request({
    url: '/weather/forecast',
    method: 'GET',
    data
  })
}
//实时天气
export function forecastNow(data) {
  return request({
    url: '/weather/forecastNow',
    method: 'GET',
    data
  })
}

//获取ip
export function getIp(data) {
  return request({
    url: '/index/getIp',
    method: 'GET',
    data
  })
}